package pojo;

import java.util.Date;

// 活动记录类（ActivityRecord）
public class ActivityRecord {
    private int activityId;
    private String activityName;
    private Date activityDate;
    private String location;
    private int participantsCount; // 参会人数
    private String activityContent; //活动内容
    private String host;
    private String className;
    public ActivityRecord() {
    }

    public ActivityRecord(int activityId, String activityName, Date activityDate, String location, int participantsCount, String activityContent) {
        this.activityId = activityId;
        this.activityName = activityName;
        this.activityDate = activityDate;
        this.location = location;
        this.participantsCount = participantsCount;
        this.activityContent = activityContent;
    }

    // getters and setters

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public String getClassName() {
        return className;
    }

    public ActivityRecord setClassName(String className) {
        this.className = className;
        return this;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public java.sql.Date getActivityDate() {
        java.sql.Date date = new java.sql.Date(this.activityDate.getTime());
        return date;
    }

    public void setActivityDate(Date activityDate) {
        this.activityDate = activityDate;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public int getParticipantsCount() {
        return participantsCount;
    }

    public void setParticipantsCount(int participantsCount) {
        this.participantsCount = participantsCount;
    }

    public String getActivityContent() {
        return activityContent;
    }

    public void setActivityContent(String activityContent) {
        this.activityContent = activityContent;
    }

    public String getHost() {
        return host;
    }

    public ActivityRecord setHost(String host) {
        this.host = host;
        return this;
    }
}
